<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Tools\Collection;
use Input;
use App\Model\Books;

class NovelController extends Controller
{
    public function index(Request $Request,$book){
    	$collection = new Collection;
    	$res = $collection->qidian($book);
    	// $books = new Books;
    	// unset($res['category']);
    	// $books->insert($res[0]);

    	return var_dump($res);
    }

    public function cat(){
    	$collection = new Collection;
    	$res = $collection->zsCat();
    	echo 123;
    	return var_dump($res);
    }

}
